import request from '@/utils/request'

// 1.获取本年生产数据
export function productionthisYear(yearMonth) {
  return request({
    url: '/ecologicalMobile/production/thisYear',
    method: 'get',
	params:{
		yearMonth
	}
  })
}

//2.获取本季度生产数据
export function productionthisQuarter(yearMonth) {
  return request({
    url: '/ecologicalMobile/production/thisQuarter',
    method: 'get',
	params:{
		yearMonth
	}
  })
}
// 3.获取本月生产数据
export function productionthisMonth(yearMonth) {
  return request({
    url: '/ecologicalMobile/production/thisMonth',
    method: 'get',
	params:{
		yearMonth
	}
  })
}
// 4.获取昨日生产数据
export function productionyesterday(yearMonth) {
  return request({
    url: '/ecologicalMobile/production/yesterday',
    method: 'get',
	params:{
		yearMonth
	}
  })
}

// 5.获取柱状图月数据
export function barDataDynamic(yearMonth) {
  return request({
    url: '/ecologicalMobile/production/barDataDynamic',
    method: 'get',
	params:{
		yearMonth
	}
  })
}

//6.本月各产品产量分布饼状图
export function monthlypieData(yearMonth) {
  return request({
    url: '/ecologicalMobile/production/monthly/pieData',
    method: 'get',
	params:{
		yearMonth
	}
  })
}

// 7.昨日各产品产量分布饼状图
export function yesterdaypieData(yearMonth) {
  return request({
    url: '/ecologicalMobile/production/yesterday/pieData',
    method: 'get',
	params:{
		yearMonth
	}
  })
}



